#ifndef ENTITY_CHARACTER_AVATAR_H
#define ENTITY_CHARACTER_AVATAR_H

#include "cocos2d.h"
#include "../../ugame/include/ugame.h"
#include "../../util/include/util.h"
#include "../../listener/include/listener.h"
#include <cmath>

USING_NS_CC;

using namespace ugame;

class EntityCharacterAvatar : public Ref {
    UG_PROPERTY_FULL(std::string, caption, Caption);
    UG_PROPERTY_FULL(std::string, upgradeAvatar, UpgradeAvatar);
    UG_PROPERTY_FULL(std::string, description, Description);
    UG_PROPERTY_FULL(std::string, effect, Effect);
    UG_PROPERTY_FULL(float, timeWaiting, TimeWaiting);
    UG_PROPERTY_FULL(std::string, requiredString, RequiredString);
    UG_PROPERTY_FULL(BigNumber*, price, Price);
    UG_PROPERTY_FULL(BigNumber*, addingUnit,AddingUnit);
    UG_PROPERTY_FULL(int, mulUnit,MulUnit);
    UG_PROPERTY_FULL(int, requiredLevel, RequiredLevel);
private:
    EntityCharacterAvatar();
    virtual ~EntityCharacterAvatar();
    virtual bool init();
public:
    CREATE_FUNC(EntityCharacterAvatar);
};

#endif
